home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ASP Advantage 1994 2nd Q2
/
The Association of Shareware Professionals - The Official ASP Advantage (2nd Quarter)(1994).bin
/
files
/
utilfile
/
pock40
/
which.bat
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
DOS Batch File
|
1994-03-14
|
433 b
|
14 lines
echo off
if "%1"=="/?" goto usage
if "%1"=="" goto usage
d . :path /IEs[t]hP~~/.u + %1.* %2 %3 %4
goto exit
:usage
echo WHICH: Find out from where DOS will find program f1 to run.
echo usage: WHICH f1 o1 o2 o3 ..
echo where o1, o2 .. are additional options
echo e.g. WHICH FORMAT Show from where the program "FORMAT" is run
echo WHICH ED /c a: Find from where "ED" is run and copy it to drive A:
:exit